package cn.zzuisa.bluebox.biz.device.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 定时上传
 * </p>
 *
 * @author Ao
 * @since 2019-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("g_device_schedule_upload")
@ApiModel(value="ScheduleUpload对象", description="定时上传")
public class ScheduleUpload extends Model<ScheduleUpload> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


    @ApiModelProperty(value = "上次剩余电量")
    private String energy;

    @ApiModelProperty(value = "上次启动时间")
    private String lastStartTime;


    @ApiModelProperty(value = "当前设备状态")
    private Long status;

    @ApiModelProperty(value = "设备id")
    private String deviceId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
